Skip to content

Release prep: fix CLI --version drift + drop dead source maps#26

Merged
jbrecht merged 1 commit into
mainfrom
chore/release-prep-0.10.0
Jun 13, 2026
Merged

Release prep: fix CLI --version drift + drop dead source maps#26
jbrecht merged 1 commit into
mainfrom
chore/release-prep-0.10.0

Conversation

@jbrecht

@jbrecht jbrecht commented Jun 13, 2026

Copy link
Copy Markdown
Owner

Pre-publish fixes from the release-reviewer pass on 0.10.0.

  • Blocker: tutorial-forge --version / tforge --version reported 0.9.0 — the literal in main.ts was missed in the 0.10.0 bump. Now reads from package.json at runtime (resolves to the package root in both dist and tsx-run dev), so it can't drift from the published version again.
  • Cleanup: sourceMap: true emitted .js.map files into dist, which files: ["dist"] then shipped — but no .ts sources ship, so the maps were dead weight (and embedded original source paths). Turned off in tsconfig.base.json. example-app is unaffected (it builds with --noEmit).

Verified: clean rebuild emits 0 .map files, dist still has .js + .d.ts, and the built CLI prints 0.10.0.

Release-reviewer findings before the 0.10.0 publish:
- CLI --version was hardcoded to 0.9.0 (missed in the version bump). Now read
  from package.json at runtime so it can never drift again.
- sourceMap was on, shipping .js.map files that point at sources not included
  in the tarball (files: ["dist"]) — dead weight + a minor source-path leak.
  Turned off in tsconfig.base; example-app is unaffected (it builds --noEmit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jbrecht jbrecht merged commit 01c3d99 into main Jun 13, 2026
1 check passed
@jbrecht

jbrecht commented Jun 13, 2026

Copy link
Copy Markdown
Owner Author

Folded in two fixes from umami's 0.10.0 dogfood verification:

  • Shipped JSDoc doc link — the settleUntil JSDoc (ships in dist/types.d.ts) referenced docs/writing-tutorials.md, which isn't in the published package. Now points at the hosted docs URL.
  • doctor --setup progress line — prints … running adapter.setup (bounded by your adapter's own timeouts) before the probe, so the failure path doesn't read as a hang.

Both rebuilt clean (0 .map files, --version → 0.10.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant